<?php
defined('IN_MAIN') or exit('Invalid Access!');

function cat_full_display($id){
global $vars;
$db=$vars["db"];

$cid=$id;
do{
 $t=@mysql_num_rows($r=mysql_query("select * from $db->product_category where id='$cid'"));
 if($t>0){
  $cat=mysql_fetch_assoc($r);
  $cat_name=$cat["title"].($cat_name? " &raquo; $cat_name" : "");
  if($cat["parent_id"]){
   $cid=$cat["parent_id"];
  }else{
   unset($cid);
  }
 }else{
  unset($cid);
 }
}while($cid);
return $cat_name;
}
?>